#ifndef SLEEP_WIDGET_H
#define SLEEP_WIDGET_H

#include <QWidget>
#include <QTimer>

#define SLEEP_TIME 300

namespace Ui {
class Sleep_Widget;
}

class Sleep_Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Sleep_Widget(QWidget *parent = 0);
    ~Sleep_Widget();

signals:
    void about_close();

private:
    Ui::Sleep_Widget *ui;

    QTimer sleep_timer{this};
    int sleep_time{SLEEP_TIME};

    void keyPressEvent(QKeyEvent *event);
private slots:
    void on_sleep_timer();
};

#endif // SLEEP_WIDGET_H
